import pytest


@pytest.mark.xfail
def test_c():
    print("test_c")
    assert 1 == 1


@pytest.mark.xfail(run=True)
def test_b():
    print("test_b")
    assert 1 == 1


@pytest.mark.xfail(run=False)
def test_d():
    print("test_d")
    raise Exception("异常")
